package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "shop_order_logistics")
public class LogisticsD implements Serializable {

	private static final long serialVersionUID = -2430229230427268072L;
	@Id
	@Column(name = "order_no_nvarchar", columnDefinition = "varchar(255) comment '订单号'")
	private String orderNo;
	@Column(name = "order_type_tinyint", columnDefinition = "tinyint(1) comment '处方订单=1,商城订单=2,'")
	private Integer orderType;
	@Column(name = "l_type_int", columnDefinition = "int(11) comment '0=自提,1=物流'")
	private Integer lType;
	@Column(name = "name_nvarchar", columnDefinition = "varchar(255) comment '姓名'")
	private String name;
	@Column(name = "tel_nvarchar", columnDefinition = "varchar(255) comment '电话号码'")
	private String tel;
	@Column(name = "address_nvarchar", columnDefinition = "varchar(255) comment '地址'")
	private String address;
	@Column(name = "is_send_bit", columnDefinition = "tinyint(1) comment '是否发货'")
	private Boolean isSend;
	@Column(name = "send_time_datetime", columnDefinition = "datetime(3) comment '发货时间'")
	private Date sendTime;
	@Column(name = "company_nvarchar", columnDefinition = "varchar(255) comment '物流公司'")
	private String company;
	@Column(name = "company_code_nvarchar", columnDefinition = "varchar(255)")
	private String companyCode;
	@Column(name = "waybill_nvarchar", columnDefinition = "varchar(255) comment '运单号'")
	private String waybill;
	@Column(name = "is_arrive_bit", columnDefinition = "tinyint(1) comment '是否到达'")
	private Boolean isArrive;
	@Column(name = "arrive_time_datetime", columnDefinition = "datetime(3) comment '到货时间'")
	private Date arriveTime;
	@Column(name = "arrive_name_nvarchar", columnDefinition = "varchar(255) comment '到货人'")
	private String arriveName;
}
